<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>微博</title>
    <link href="style/weibo.css" rel="stylesheet" type="text/css"/>
    <script src="lib/react.development.js"></script>
    <script src="lib/react-dom.development.js"></script>
    <script src="lib/babel.min.js"></script>
    <script src="node_modules/axios/dist/axios.min.js"></script>
</head>
<body>
    <div class="jyArea"></div>

    <script type="text/babel" src="./components/TakeComment.jsx"></script>
    <script type="text/babel" src="./components/CommentOn.jsx"></script>
    <script type="text/babel" src="./components/PageList.jsx"></script>
    <script type="text/babel" src="./components/app.jsx"></script>

    <script type="text/babel">
        axios.defaults.baseURL = "http://192.168.12.31.8081"
        axios.interceptors.response.use(res=>{
            const {ok,msg} = res.data;
            if(ok===-1){
                alert(ok);
                return new Promise(()=>{});
            }
            return res.data;
        })
        React.Component.prototype.$axios = axios;
        ReactDOM.createRoot(document.querySelector('.jyArea')).render(<App/>)
    </script>
</body>
</html>